<script setup>
import { reactive } from 'vue'
import Model from '@/api/cnode/article.ts'
import { ElMessage, ElLoading } from 'element-plus'
const api = new Model()
//获取数据
//定义入参
let options = reactive({
  page: 1,
  limit: 10,
  tab: 'ask',
})
const getDataList = () => {
  api.getTip({ ...options }).then((res) => {
    if (res.status === 200 && res.data.data.length) {
      console.log(res)
      ElMessage.success('获取成功')
    }
  })
}
//初始化请求数据列表
getDataList()
</script>

<template>
  <div>cnode</div>
</template>

<style scoped lang="scss">
@import './index.scss';
</style>
 